<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<!--action设置提交地址-->
<form action="http://www.baidu.com">
  <!--placeholder占位文本 name是所有控件必须添加的属性,maxlength最大字符长度
  value设置控件的值 readonly只读-->
  用户名:<input type="text" name="username" value="abc" readonly
             maxlength="5" placeholder="请输入用户名"><br>
  密码:<input type="password" name="password" placeholder="请输入密码"><br>
  <!--单选框和多选框必须添加value 否则提交的是on checked默认选中-->
  性别:<input type="radio" name="gender"  value="m" id="r1"><label for="r1">男</label>
  <input type="radio" name="gender" value="w" checked  id="r2"><label for="r2">女</label><br>
  兴趣爱好:<input type="checkbox" name="hobby" value="wz">王者荣耀
  <input type="checkbox" name="hobby" value="coding" checked>撸代码
  <input type="checkbox" name="hobby" value="basketball">打篮球<br>
  生日:<input type="date" name="birthday"><br>
  靓照:<input type="file" name="pic"><br>
  所在地:
  <select name="city">
    <option value="bj">北京</option>
    <option>上海</option>
    <option selected>广州</option>
  </select><br>
  <input type="submit" value="注册">
  <input type="reset">
  <input type="button" value="按钮">
  <hr>
  <button type="submit">注册</button>
  <button type="reset">重置</button>
  <button type="button">按钮</button>
</form>
</body>
</html>